<!--{@page layout="frame"}-->
<!--{content head}-->
<link rel="stylesheet" href="<?php echo MONK::include_css('project-checkcategory','/Admin/source/styles/project/checkcategory.css',false,true); ?>">
<!--{/content}-->
<!--{content content}-->
<h2>添加项目 - step1 选择分类</h2>
<div class="main">
    <dl>
        <?php foreach($categorys as $pid=>$category){ ?>
        <dd>
            <?php if($category['has_url'] == 1){ ?>
            <h3><a href="<?php echo MONK::_url('project/add',array('pid'=>$pid)); ?>"><?php echo $category['title']; ?></a></h3>
            <?php }else{ ?>
            <h3><?php echo $category['title']; ?></h3>
            <?php } ?>
            <?php if(!empty($category['sub'])) foreach($category['sub'] as $sid => $sub){ ?>
            <ul>
                <li><a href="<?php echo MONK::_url('project/add',array('pid'=>$pid,'sid'=>$sid)); ?>"><?php echo $sub['title']; ?></a></li>
            </ul>
            <?php } ?>
        </dd>
        <?php } ?>
    </dl>
<div>
<!--{/content}-->